<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="root">
        <h4>注册表单</h4>
        <table width="500">
            <tr>
                <td>用户名：</td>
                <td>
                    <input type="text" name="username" value="请输入用户名">
                </td>
            </tr>
            <tr>
                <td>密码：</td>
                <td>
                    <input type="text" name="password" value="请输入密码">
                </td>
            </tr>
            <tr>
                <td>性别：</td>
                <td>
                    <input type="radio" name="nex" value="男" v-model="sex" checked id="nan">
                    <label for="nan">男</label>
                    <input type="radio" name="nex" value="女" v-model="sex" id="nv">
                    <label for="nv">女</label>
                </td>
            </tr>
            <tr>
                <td>爱好：</td>
                <td>
                    <input type="checkbox" name="hobby" value="吃饭" v-model="hobby" id="chi">
                    <label for="chi">吃饭</label>
                    <input type="checkbox" name="hobby" value="游戏" v-model="hobby" checked id="you">
                    <label for="you">游戏</label>
                    <input type="checkbox" name="hobby" value="敲代码" v-model="hobby" id="qiao">
                    <label for="qiao">敲代码</label>
                </td>
            </tr>
            <tr>
                <td>地址：</td>
                <td>
                    <select name="address" id="" v-model="address">
                        <option value="北京">北京</option>
                        <option value="山西">山西</option>
                        <option value="河南">河南</option>
                        <option value="河北">河北</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="checkbox" name="isAgree" checked>是否同意
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button @.click="">提交</button>
                </td>
            </tr>
        </table>
    </div>
</body>
<script>
    Vue.config.productionTip = false
    let vm = new Vue({
        el: "#root",
        data: {
            username: "",
            password: "",
            sex: "女",
            hobby: [],
            address: ""
        },
        methods: {

        },
    })
</script>

</html>